<?php
session_start();
//-------
// Includes
if(file_exists('functions.inc.php'))
	include_once('functions.inc.php');
elseif(file_exists('../functions.inc.php'))
	include_once('../functions.inc.php');
else
{
	throw new Exception('Error : Cannot find ROOTDIR/functions.inc.php');
	die();
}

// Check if it's an ajax call -- if not, page manually loaded, exit
if(!isset($_POST) or empty($_POST) or !is_array($_POST) or empty($_POST['action']))
{
	echo('This page must not be loaded manually.');
	die();
}

// What do we do ?
switch($_POST['action'])
{
	case 'debug':
		echo "<br />";		
		Tag::matchTags("Google est à Internet ce que Microsoft est au PC");
		
	break;

	
	default: break;
}

?>
